package cn.xopencode.userservice.convert;

import cn.xopencode.userservice.dal.mysql.dataobject.EvaluateDO;
import cn.xopencode.userservice.rpc.evaluate.dto.CreateEvaluateDTO;
import cn.xopencode.userservice.rpc.evaluate.dto.EvaluateDTO;
import cn.xopencode.userservice.rpc.evaluate.dto.UpdateEvaluateDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author xiaodawei
 * @since 2021/9/22
 */

@Mapper
public interface EvaluateConver {

    EvaluateConver INSTANCE = Mappers.getMapper(EvaluateConver.class);

    EvaluateDTO convert(EvaluateDO matterDO);

    EvaluateDO convert(CreateEvaluateDTO createEvaluateDTO);

    EvaluateDO convert(UpdateEvaluateDTO updateEvaluateDTO);
}
